package cn.onlineclass.dao;

import cn.onlineclass.entity.OCollect;
import org.apache.ibatis.annotations.Param;

import java.util.List;
public interface CollectMapper {
    public List<OCollect> findALL();

    //根据id查找单个Student信息
    //根据主键找单个对象的查询方法
    public OCollect get(long id);

    public int add(OCollect c);

    public int update(OCollect c);

    public int del(long id);
    public List<OCollect> search(@Param("pageNo") int pageNo, @Param("pageSize") int pageSize, @Param("openid") String openid);

    //找出当前查询条件下，符合条件的总数
    public int searchTotal(@Param("openid") String openid);
}